package com.hcy.event;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationEvent;

import java.util.Date;
import java.util.List;

/**
 * @Description:
 * @Author: LiJun
 * @Date: 2025/7/23 14:17
 */
@Slf4j
public class DataCopyEvent extends ApplicationEvent {
    private List<Integer> list;
    public DataCopyEvent(Object source, List<Integer> list) {
        super(source);
        for (int i = 0; i < 1000000000; i++) {
            list.add(i);
        }
        this.list = list;
        log.info("数据复制完毕，结束时间为:{}",new Date());
    }

    public List<Integer> getList() {
        return list;
    }
}
